package com.flong.jsoup;

import java.math.BigDecimal;

public class TTTT {

	public static void main(String[] args) {

		
		BigDecimal totalPay = new BigDecimal(Float.toString(210f));
		BigDecimal alreadyPay = new BigDecimal(Float.toString(370.00f));
		//待支付余额
		float ss = totalPay.subtract(alreadyPay).floatValue(); 
		System.out.println(ss);
		if(ss<=0){//说明已经全部支付成功
			System.out.println(1);
		}else{
			System.out.println(2);
		}
		
	}

}
